package ofmybatis.demo;

import ofmybatis.demo.TestDSCIRegister.DefaultTypeFactoryRegistry;
import ofmybatis.demo.TestDSCIRegister.TypeFactoryRegistry;
import ofmybatis.demo.bean.Components;
import ofmybatis.demo.pojo.UserInfo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//@MapperScan("ofmybatis.demo.dao")
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }



    @Bean
    public TypeFactoryRegistry typeFactoryRegistry(){
        return new DefaultTypeFactoryRegistry();
    }




}
